<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>注册</title>
		<link rel="stylesheet" type="text/css" href="css/register.css"/>
		<script src="libs/js/jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<style type="text/css">
		
	</style>
	<body style="height: 100%; zoom: 1;">
		<div class="i_login">
    <div class="il_nav" id="il_nav">
        <a href="#" target="_self" class="logo"><img src="img/71.png"/></a>
    </div>
    
    <div class="il_wrap" id="il_wrap">
        <div class="il_box login_box">
            <form id="login_form">
            <div class="il_body">
                <h4>注 册</h4>
                <div class="form-group" style="margin-bottom: 15px;font-size: 14px;">
                    <!--<label class="sr-only" for="username">登录</label>-->
                    <!--<input class="form-control" id="username" autofocus="autofocus" type="email" placeholder="请输入邮箱" />-->
                     我们将发送一封验证邮件到你的邮箱，此邮箱将作为登录用户名
                     
                </div>
                <div class="form-group">
                    <!--<label class="sr-only" for="password">Email address</label>-->
                    <input class="form-control" id="email" type="email" placeholder="输入你的邮箱" />
                </div>
                <div class="checkboxFormGroup" style="">
       				 <label class="virtualCheckbox" for="isAgree" id="forAgree">
            				<input type="checkbox" name="isCheck" id="isAgree" value="0">
        				</label>
        				<span class="text-gray" style="font-size: 13px;">
            				我已阅读并同意<a href="https://pingxx.com/terms#terms" target="_blank" class="text-blue">《服务协议》</a>和<a href="https://pingxx.com/terms#privacy" target="_blank" class="text-blue">《隐私权协议》</a>
        				</span>
    				</div>
            </div>
            <div class="il_btn clearfix">
                <button type="submit" id="loginBtn" class="btn btnBlack btn-block" onclick="a()">发送验证邮箱</button>
                <!--<a href="https://dashboard.pingxx.com/page/auto/resetPassword" class="retrieve">忘记密码</a>-->
                <!--<a href="https://dashboard.pingxx.com/register" class="reg">注册账户</a>-->
            </div>
            </form>
        </div>
    </div>
    
    <div class="il_footer" id="il_footer">
        <div class="wrapper">
            <div class="row">
                <div class="icp pull-right">
                    <span>沪 ICP 备 14045638 号 -1</span> <a href="https://www.longpay.com/" target="_self">&copy; LongPay</a>
                </div>
            </div>
        </div>
    </div>
    
</div>
	</body>
	<script type="text/javascript">
		var i = 59;
		function a(){
			var str = $("#email").val()
		if(str.indexOf("@")!=-1 && str.length>=6 && $("#isAgree").is(':checked') == true){//'ww'指定判断的字符串
			//发送邮件按钮60秒不可用
			i = 59;
			$("#loginBtn").attr({"disabled":true});
			$("#loginBtn").text("59秒");
			if(i >= 0){
				inti = setInterval("Timing()",1000);
				setTimeout("clearInterval(inti)",60000);
			}else{return;}
			//发送请求
			alert("验证通过")
		}else{
			alert("请检查邮箱格式，同意并阅读协议！");
		}
		}
		
		function Timing(){i--;if (i>0) {$("#loginBtn").text(i + "秒");}else {	$("#loginBtn").text("发送验证码"); $("#loginBtn").attr({"disabled":false});}} 
			
			
	</script>
</html>
